#ifndef _SCRIPT_IMAGEBUTTON_H
#define _SCRIPT_IMAGEBUTTON_H

#include <guichan.hpp>
#include <HasScriptHandler.h>

//能够发送事件到脚本系统的按钮
class ScriptImageButton : public gcn::ImageButton, public HasScriptHandler
{
public:
    typedef gcn::ImageButton Base;

    ScriptImageButton(const std::string& filename);
    virtual void    mousePressed(gcn::MouseEvent& mouseEvent);

    virtual void    mouseReleased(gcn::MouseEvent& mouseEvent);

    virtual void    mouseEntered(gcn::MouseEvent& mouseEvent);

    virtual void    mouseExited(gcn::MouseEvent& mouseEvent);

    virtual void    mouseDragged(gcn::MouseEvent& mouseEvent);
protected:
private:
};
#endif
